const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = function(app) {
    // 配置多个跨域
    app.use(createProxyMiddleware("/devApi", {
        target: "http://www.web-jshtml.cn/api/react" , //配置你要请求的服务器地址
        changeOrigin: true,
        pathRewrite: {
            "^/devApi": "",
        }
    }))
    // app.use(createProxyMiddleware("/manage/api", {
    //     target: "http://admintest.happymmall.com:7000" ,
    //     changeOrigin: true,
    // }))
};
